package com.syqc.comlib.base

import android.os.Bundle
import android.view.LayoutInflater
import androidx.viewbinding.ViewBinding
import com.gyf.immersionbar.ktx.immersionBar
import com.syqc.comlib.databinding.IncludeToolbarBinding

abstract class BaseBarActivity<VB : ViewBinding>(inflater: (LayoutInflater) -> VB) :
    BaseActivity<VB>(inflater) {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val mToolBarVb = IncludeToolbarBinding.bind(binding.root)
        immersionBar { titleBar(mToolBarVb.mToolbar) }
    }
}